
import fm_soundex
import fm_soundex_dmetaphone
import fm_soundex_nysiis

x = fm_soundex_dmetaphone.main

print "= 00 ==\n"
print x('kitten'), 'kitten'
print x('sitting'), 'sitting'

print "= 01 ==\n"
print x("    1 Brantwood, BEAMINSTER, DORSET, DT8 3SS")
print "    1 Brantwood, BEAMINSTER, DORSET, DT8 3SS"
print x("THE BEECHES 1, BRANTWOOD, BEAMINSTER, DORSET DT8 3SS")
print "THE BEECHES 1, BRANTWOOD, BEAMINSTER, DORSET DT8 3SS"

print "= 02 ==\n"
print x("Flat 2, Bethany House, Broadwindsor Road, BEAMINSTER, DORSET, DT8 3PP")
print "Flat 2, Bethany House, Broadwindsor Road, BEAMINSTER, DORSET, DT8 3PP"
print x("2, BETHANY HOUSE, BEAMINSTER, DORSET DT8 3PP")
print "2, BETHANY HOUSE, BEAMINSTER, DORSET DT8 3PP"

print "= 03 ==\n"
print x("Penthouse,Old Vicarage, 1 Clay Lane, BEAMINSTER, DORSET, DT8 3BU")
print "Penthouse,Old Vicarage, 1 Clay Lane, BEAMINSTER, DORSET, DT8 3BU"
print x("PENTHOUSE FLAT THE OLD VICARAGE 1, CLAY LANE, BEAMINSTER, DORSET DT8 3BU")
print "PENTHOUSE FLAT THE OLD VICARAGE 1, CLAY LANE, BEAMINSTER, DORSET DT8 3BU"

print "= 04 ==\n"
print x("St John's Presbytery, Shortmoor, BEAMINSTER, DORSET, DT8 3EL")
print "St John's Presbytery, Shortmoor, BEAMINSTER, DORSET, DT8 3EL"
print x("THE PRESBYTERY, SHORTMOOR, BEAMINSTER, DORSET DT8 3EL")
print "THE PRESBYTERY, SHORTMOOR, BEAMINSTER, DORSET DT8 3EL"

print "= 05 ==\n"
print x("The Pinnacles, White *** Hill, BEAMINSTER, DORSET, DT8 3SF")
print "The Pinnacles, White *** Hill, BEAMINSTER, DORSET, DT8 3SF"
print x("PINNACLES, WHITE*** HILL, BEAMINSTER, DORSET DT8 3SF ")
print "PINNACLES, WHITE*** HILL, BEAMINSTER, DORSET DT8 3SF "

print "= 06 ==\n"
print x("Umelecka 618/7, Praha 8")
print "Umelecka 618/7, Praha 8"
print x("Praha 8, Umelecka 618/7")
print "Praha 8, Umelecka 618/7"
